package com.zmm.zebulon.module.member.biz.dal.mysql.signin;

import com.zmm.zebulon.module.member.biz.dal.dataobject.signin.MemberSignInConfigDO;
import com.zmm.zebulon.starter.mybatis.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * description: 签到规则 Mapper
 *
 * @author zebulon
 * package com.zmm.zebulon.module.member.biz.dal.mysql.signin
 * name: MemberSignInConfigMapper
 * date 2024/1/10 20:58
 */
@Mapper
public interface MemberSignInConfigMapper extends BaseMapperX<MemberSignInConfigDO> {

    default MemberSignInConfigDO selectByDay(Integer day) {
        return selectOne(MemberSignInConfigDO::getDay, day);
    }

    default List<MemberSignInConfigDO> selectListByStatus(Integer status) {
        return selectList(MemberSignInConfigDO::getStatus, status);
    }
}
